//
//  ZGLUserInfoModel.h
//  ZeegingLottery
//
//  Created by 蒂埃里 on 2018/4/3.
//  Copyright © 2018年 蒂埃里. All rights reserved.
//

#import <Foundation/Foundation.h>

#define sZGLUserInfoModel [ZGLUserInfoModel shardModel]

@interface ZGLUserInfoModel : NSObject

@property (assign, nonatomic)BOOL usercheck;     //登录状态
@property (nonatomic, copy) NSString *id;
@property (copy, nonatomic)NSString *mobile;
@property (copy, nonatomic)NSString *token;
@property (copy, nonatomic)NSString *username;
@property (copy, nonatomic)NSString *email;
@property (nonatomic, copy) NSString *frozen_cash; //不能提取资金
@property (copy, nonatomic)NSString *red_cash;
@property (copy, nonatomic)NSString *balance;
@property (nonatomic, copy) NSString *is_real; //真名
@property (nonatomic, copy) NSString *is_bank; //银行卡

/*
 
 "id": "3145",
 "username": "2018-08-09_15_34_36yh80",
 "email": "",
 "token": "gTATypUg2ayd6dIEw3gYYM8sw2zLmkFd",
 "mobile": "13570267425",
 "red_cash": "0.00",
 "frozen_cash": "0.00",
 "balance": "12.00"
 */


+ (ZGLUserInfoModel *)shardModel;


/**
 设置最新获取的模型
 @param userInfo userInfo description
 */
- (void)setLoginSuccessedWithUserInfo:(ZGLUserInfoModel *)userInfo;

/*
 退出登录，清空信息
 */
- (void)setLoginOutWithUserInfo;

- (void)readUserInfoFromDisk;

- (void)saveUserInfoToDisk;

@end
